﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entities;
using BLL;
namespace Stationery
{
    public partial class Default : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL_Product bll_Product = new BLL_Product();
            LabelTitle.Text = Utils.label_product_ral;
        }

        protected string MasterGetLinkDetail(object pID)
        {
            BLL_Product bll_Product = new BLL_Product();
            string strID_PARENT = "";
            int intID;
            string strURL = "";
            intID = Convert.ToInt32(pID);
            Product product;
            try
            {
                product = bll_Product.Lst_Product(bll_Product.Get_Product(intID))[0];
                strID_PARENT = product.ID_MENUURL.ToString();
            }
            catch
            {
                return "";
            }
            strURL = String.Format("WebProduct.aspx?id={0}&id_child={1}", strID_PARENT, intID);
            return strURL;
        }
    }
}
